package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 新闻表 sys_news
 * 
 * @author ruoyi
 * @date 2019-06-13
 */
public class News extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 新闻标题 */
	private String title;
	/** 新闻类别:top(头条，默认),shehui(社会),guonei(国内),guoji(国际),yule(娱乐),tiyu(体育)junshi(军事),keji(科技),caijing(财经),shishang(时尚) */
	private String type;
	/** 新闻来源 */
	private String authorName;
	/** 发布时间 */
	private String date;
	/** 缩略图 */
	private String thumbnailPicS;
	/** 新闻网址 */
	private String url;
	/** 新闻唯一标识符 */
	private String uniquekey;
	/**  */
	private Date createTime;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setAuthorName(String authorName) 
	{
		this.authorName = authorName;
	}

	public String getAuthorName() 
	{
		return authorName;
	}
	public void setDate(String date) 
	{
		this.date = date;
	}

	public String getDate() 
	{
		return date;
	}
	public void setThumbnailPicS(String thumbnailPicS) 
	{
		this.thumbnailPicS = thumbnailPicS;
	}

	public String getThumbnailPicS() 
	{
		return thumbnailPicS;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}
	public void setUniquekey(String uniquekey) 
	{
		this.uniquekey = uniquekey;
	}

	public String getUniquekey() 
	{
		return uniquekey;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("type", getType())
            .append("authorName", getAuthorName())
            .append("date", getDate())
            .append("thumbnailPicS", getThumbnailPicS())
            .append("url", getUrl())
            .append("uniquekey", getUniquekey())
            .append("createTime", getCreateTime())
            .toString();
    }
}
